package main

import (
	"GOPAAS/internal/app/crontab"
	"github.com/robfig/cron/v3"
)

func InitCron() {
	go func() {
		c := cron.New()
		c.AddFunc("@every 1m", crontab.Test)
		//c.AddFunc("@every 20s", crontab.Schedule)
		c.Start()
		select {}
	}()
}
